<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:73:"D:\phpstudy\WWW\jiarong\public/../application/admin\view\hkstore\add.html";i:1528424811;s:66:"D:\phpstudy\WWW\jiarong\application\admin\view\layout\default.html";i:1523891109;s:63:"D:\phpstudy\WWW\jiarong\application\admin\view\common\meta.html";i:1523891109;s:65:"D:\phpstudy\WWW\jiarong\application\admin\view\common\script.html";i:1523891109;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="__CDN__/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="__CDN__/assets/js/html5shiv.js"></script>
  <script src="__CDN__/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group hidden">
        <label for="c-admin_id" class="control-label col-xs-12 col-sm-2"><?php echo __('用户名'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="required" class="form-control" name="row[admin_id]" type="text" value="<?php echo \think\Session::get('admin.id'); ?>">
        </div>
    </div>
    <div class="form-group">
        <label for="c-s_name" class="control-label col-xs-12 col-sm-2"><?php echo __('S_name'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-s_name" data-rule="required" class="form-control" name="row[s_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-s_image" class="control-label col-xs-12 col-sm-2"><?php echo __('S_image'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-s_image" data-rule="required" class="form-control"  name="row[s_image]" type="text" placeholder="宽度大于115px，高度大于90px。比列4:3,大小500KB"  value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-s_image" class="btn btn-danger plupload" data-input-id="c-s_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-maxsize="500KB" data-multiple="false" data-preview-id="p-s_image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                    <span><button type="button" id="fachoose-s_image" class="btn btn-primary fachoose" data-input-id="c-s_image" data-mimetype="image/*"  data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                </div>
                <span class="msg-box n-right" for="c-s_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-s_image"></ul>
        </div>
    </div>
	<div class="form-group">
		<label for="c-s_images" class="control-label col-xs-12 col-sm-2"><?php echo __('S_images'); ?>:</label>
		<div class="col-xs-12 col-sm-8">
			<div class="input-group">
				<input id="c-s_images" data-rule="required" class="form-control" placeholder="宽度大于420px，高度大于215px。比列2:1,大小500KB" name="row[s_images]" type="text" value="">
				<div class="input-group-addon no-border no-padding">
					<span><button type="button" id="plupload-s_images" class="btn btn-danger plupload" data-input-id="c-s_images" data-maxsize="500KB" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-s_images"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
					<span><button type="button" id="fachoose-s_images" class="btn btn-primary fachoose" data-input-id="c-s_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
				</div>
				<span class="msg-box n-right" for="c-s_images"></span>
			</div>
			<ul class="row list-inline plupload-preview" id="p-s_images"></ul>
		</div>
	</div>
    <div class="form-group">
        <label for="c-s_address" class="control-label col-xs-12 col-sm-2"><?php echo __('S_address'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-s_address" data-rule="required" class="form-control" name="row[s_address]" type="text" value="">
        </div>
    </div>
	<div class="form-group">
		<label for="c-area_id" class="control-label col-xs-12 col-sm-2"><?php echo __('店铺区域'); ?>:</label>
		<div class="col-xs-12 col-sm-8">

			<select  id="c-area_id" data-rule="required" class="form-control selectpicker" name="row[area_id]">
				<?php if(is_array($areaList) || $areaList instanceof \think\Collection || $areaList instanceof \think\Paginator): if( count($areaList)==0 ) : echo "" ;else: foreach($areaList as $key=>$vo): ?>
				<option value="<?php echo $key; ?>"><?php echo $vo; ?></option>
				<?php endforeach; endif; else: echo "" ;endif; ?>
			</select>

		</div>
	</div>
    <div class="form-group">
        <label for="c-pos_latitude" class="control-label col-xs-12 col-sm-2"><?php echo __('Pos_latitude'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pos_latitude" data-rule="required" class="form-control" step="0.0000001" name="row[pos_latitude]" type="number" value="0.0000000">
        </div>
    </div>
    <div class="form-group">
        <label for="c-pos_longitude" class="control-label col-xs-12 col-sm-2"><?php echo __('Pos_longitude'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pos_longitude" data-rule="required" class="form-control" step="0.0000001" name="row[pos_longitude]" type="number" value="0.0000000">
        </div>
    </div>
	<div class="form-group">
		<label for="c-pos_longitude" class="control-label col-xs-12 col-sm-2"><?php echo __('高德地图'); ?>:</label>
		<div class="col-xs-12 col-sm-8">
			<a href="http://lbs.amap.com/console/show/picker" target="view_window">前往高德地图链接</a>
		</div>
	</div>
    <div class="form-group">
        <label for="c-service_phone" class="control-label col-xs-12 col-sm-2"><?php echo __('Service_phone'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_phone" data-rule="required" class="form-control" name="row[service_phone]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-contact_name" class="control-label col-xs-12 col-sm-2"><?php echo __('Contact_name'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_name" data-rule="required" class="form-control" name="row[contact_name]" type="text">
        </div>
    </div>



	<?php if(\think\Session::get('admin.type') == '0'): ?>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2"><?php echo __('Status'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            <?php if(is_array($statusList) || $statusList instanceof \think\Collection || $statusList instanceof \think\Paginator): if( count($statusList)==0 ) : echo "" ;else: foreach($statusList as $key=>$vo): ?>
            <label for="row[status]-<?php echo $key; ?>"><input id="row[status]-<?php echo $key; ?>" name="row[status]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"normal"))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label> 
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>

        </div>
    </div>


	<div class="form-group">
		<label for="c-s_score" class="control-label col-xs-12 col-sm-2"><?php echo __('S_score'); ?>:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-s_score" data-rule="required" class="form-control" name="row[s_score]" type="number" value="5">
		</div>
	</div>
	<?php endif; ?>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="__CDN__/assets/js/require.js" data-main="__CDN__/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>